/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
const MailRouter = {
  path: '/Mail',
  component: Layout,
  redirect: '/Mail/mailTracking',
  name: 'Mail',
  meta: {
    title: '邮件通知',
    icon: 'email',
    roles: ['root', 'admin', 'guest' ]
  },
  children: [
    {
      path: 'mailnotice',
      name: 'mailnotice',
      component: () => import('@/views/Mail/mailnotice'),
      meta: { title: '邮件任务', icon: 'dian' }
    },
    {
      path: 'mailResources',
      name: 'mailResources',
      component: () => import('@/views/Mail/mailResources'),
      meta: { title: '参数配置', icon: 'dian' }
    },
    {
      path: 'myClient',
      name: 'myClient',
      component: () => import('@/views/Mail/myClient'),
      meta: { title: '我的客户', icon: 'dian' }
    },
    {
      path: 'clientGroup',
      name: 'clientGroup',
      component: () => import('@/views/Mail/clientGroup'),
      meta: { title: '客户分组', icon: 'dian' }
    },
  ]
}

export default MailRouter
